package rz.dmc.util;

import java.util.ArrayList;
import java.util.List;

public class RZSegment 
{
    private List<RZPoint> points = new ArrayList<RZPoint>();
    private int color;
    private float strokeWidth;

    public RZSegment(int color, float strokeWidth)
    {
        this.color = color;
        this.strokeWidth = strokeWidth;
    }

    public void addPoint(float lastTouchX, float lastTouchY) 
    {
    	RZPoint p = new RZPoint(lastTouchX, lastTouchY);
        points.add(p);
    }

    public List<RZPoint> getPoints() 
    {
        return points;
    }

    public int getColor() 
    {
        return color;
    }
    
    public float getStrokeWidth()
    {
    	return strokeWidth;
    }
}
